import { Component, ChangeDetectionStrategy } from '@angular/core';
import { AppService } from './app.service';

@Component({
  selector: 'app-root',
  styleUrls: ['./app.component.less'],
  templateUrl: './app.component.html',
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class AppComponent  {

  sideOpened: boolean = true;
  mode = 'side';
  hasBackdrop: boolean | null = null;
  constructor(private appService: AppService) { }
  onSideOpened(agreed: boolean) {
    this.sideOpened = !this.sideOpened;
  }

}
